﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using TabbedTemplate.Models;

namespace TabbedTemplate.Services
{
    public interface IStoreStorage
    {
        /// <summary>
        /// 是否已经初始化。判断版本
        /// </summary>
        bool UserCacheInitialized();

        /// <summary>
        /// 初始化，copy新版本数据库
        /// </summary>
        Task UserCacheInitializeAsync();

        Task<Store> GetStoreByStoreUidAsync(string uid);

        Task InsertAStore(Store store);

        Task InsertAllStores(IList<Store> stores);


    }
}
